home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / intuition / lockibase.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  1KB  |  62 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: lockibase.c,v 1.2 1996/10/24 15:51:21 aros Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include <clib/exec_protos.h>
  9. #include "intuition_intern.h"
  10.  
  11. /*****************************************************************************
  12.  
  13.     NAME */
  14.     #include <clib/intuition_protos.h>
  15.  
  16.     AROS_LH1(ULONG, LockIBase,
  17.  
  18. /*  SYNOPSIS */
  19.     AROS_LHA(ULONG, What, D0),
  20.  
  21. /*  LOCATION */
  22.     struct IntuitionBase *, IntuitionBase, 69, Intuition)
  23.  
  24. /*  FUNCTION
  25.     Locks Intuition. While you hold this lock, no fields of Intuition
  26.     will change. Please release this as soon as possible.
  27.  
  28.     INPUTS
  29.     What - Which fields of Intuition should be locked. The only allowed
  30.         value for this is currently 0 which means to lock everything.
  31.  
  32.     RESULT
  33.     The result of this function must be passed to UnlockIBase().
  34.  
  35.     NOTES
  36.     You *must not* call this function if you have any locks on other
  37.     system resources like layers and LayerInfo locks.
  38.  
  39.     EXAMPLE
  40.  
  41.     BUGS
  42.  
  43.     SEE ALSO
  44.     UnLockIBase()
  45.  
  46.     INTERNALS
  47.  
  48.     HISTORY
  49.     29-10-95    digulla automatically created from
  50.                 intuition_lib.fd and clib/intuition_protos.h
  51.  
  52. *****************************************************************************/
  53. {
  54.     AROS_LIBFUNC_INIT
  55.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  56.  
  57.     ObtainSemaphore (GetPrivIBase(IntuitionBase)->SigSem);
  58.  
  59.     return What;
  60.     AROS_LIBFUNC_EXIT
  61. } /* LockIBase */
  62.